//
//  ProgressView.m
//  Mango
//
//  Created by lanou3g on 16/5/8.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "ProgressView.h"

@implementation ProgressView
- (void)awakeFromNib
{
    self.hidden = YES;
    self.roundedCorners = 2;
    self.progressLabel.textColor = [UIColor whiteColor];
}

- (void)setProgress:(CGFloat)progress animated:(BOOL)animated
{
    [super setProgress:progress animated:animated];
    
    NSString *text = [NSString stringWithFormat:@"%.0f%%", progress * 100];
    self.progressLabel.text = [text stringByReplacingOccurrencesOfString:@"-" withString:@""];
}

@end
